package edu.stu.cs.software.family.favoriteshop.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import edu.stu.cs.software.family.base.web.spring.controller.GenericController;
import edu.stu.cs.software.family.favoriteshop.domain.Favorite;
import edu.stu.cs.software.family.favoriteshop.service.FavoriteManager;


@RequestMapping("/favorite")
@Controller
public class FavoriteController extends GenericController<Favorite, Long, FavoriteManager> {

	FavoriteManager favoriteManager;
	
	@RequestMapping("/index")
	public String index() {
		return "favorite/index";
	}
	
	@Autowired
	public void setCustomerManager(FavoriteManager favoriteManager) {
		this.favoriteManager = favoriteManager;
		this.manager = this.favoriteManager;
	}
}